#ifdef a
//字符串逆序存放(字符指针)
#include<stdio.h>
#include<string.h>
#include<assert.h>
void ReverseString(char* arr, char tmp[], int length) {
    assert(arr);
    int sz = 0;
    for (int i = length - 1; i >= 0; i--)
        tmp[sz++] = arr[i];
    tmp[sz] = '\0';
}
int main() {
    char* arr = "hello";
    char tmp[100] = { 0 };
    int length = strlen(arr);
    ReverseString(arr, tmp, length);
    printf("%s", tmp);
    return 0;
}
#endif